
input[type='text'],input[type='password'], textarea
{
    -moz-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), 0 1px 0 white, 0 0 1px transparent, 0 0 1px transparent, 0 0 1px transparent;
    -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), 0 1px 0 white, 0 0 1px transparent, 0 0 1px transparent, 0 0 1px transparent;
    -webkit-margin-end: 7px;
    -webkit-margin-start: 2px;
    -moz-margin-end: 7px;
    -moz-margin-start: 2px;
    -webkit-transition: -webkit-box-shadow 100ms, background 100ms, border 500ms;
    border-radius: 3px;
    border: 1px solid #a0a0a0;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    padding: 4px 6px 4px 6px;
}


input[type='text']:focus,input[type='password']:focus, textarea:focus
{
    -moz-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), 0 1px 0 transparent, 0 0 1px #c0c0c0, 0 0 1px #c0c0c0, 0 0 1px #c0c0c0;
    -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), 0 1px 0 transparent, 0 0 1px #c0c0c0, 0 0 1px #c0c0c0, 0 0 1px #c0c0c0;
    -moz-transition: -moz-box-shadow 200ms, background 200ms, border 200ms;
    -webkit-transition: -webkit-box-shadow 200ms, background 200ms, border 200ms;
    background: #f8f8f8;
    border-color: #4080fa;
    outline: none;
}

input[type='text']:disabled,input[type='password']:disabled, textarea:disabled
{
    background: #f8f8f8;
    border-color: #c0c0c0;
}

button, input[type='submit']
{
    -moz-box-shadow: inset 0 1px 2px white, 0 1px 2px rgba(0,0,  0, .2);
    -webkit-box-shadow: inset 0 1px 2px white, 0 1px 2px rgba(0,0,  0, .2);
    -webkit-user-select: none;
    background: -moz-linear-gradient(#fafafa, #dcdcdc);
    background: -webkit-linear-gradient(#fafafa, #dcdcdc);
    border-radius: 3px;
    border: 1px solid #a0a0a0;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    padding: 3px 10px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}



button.default:disabled
{
    border-color: #a0a0a0;
}


input[type='submit']:not(disabled):not(.disabled):hover
{
    -moz-box-shadow: inset 0 1px 2px white, 0 2px 4px rgba(0, 0, 0, .2);
    -webkit-box-shadow: inset 0 1px 2px white, 0 2px 4px rgba(0, 0, 0, .2);
    background: -moz-linear-gradient(#fff, #e6e6e6);
    background: -webkit-linear-gradient(#fff, #e6e6e6); /* Using opacity 0.99 instead of 1 because of http://crbug.com/68370 */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.99);
}

input[type='submit']:not(disabled):not(.disabled):active, button.active
{
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
    background: -moz-linear-gradient(#f0f0f0, #bebebe);
    background: -webkit-linear-gradient(#f0f0f0, #bebebe);
    border-color: #808080;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}


input[type='checkbox']
{
    -webkit-box-shadow: inset 0 1px 2px white, 0 1px 2px rgba(0, 0, 0, .2);
    -moz-box-shadow: inset 0 1px 2px white, 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-appearance: none;
    -webkit-margin-start: 0;
    -webkit-margin-end: 5px;
    background: -webkit-linear-gradient(#fafafa, #dcdcdc);
    -moz-appearance: none;
    -moz-margin-start: 0;
    -moz-margin-end: 5px;
    background: -moz-linear-gradient(#fafafa, #dcdcdc);
    border-radius: 3px;
    border: 1px solid #a0a0a0;
    display: inline-block;
    height: 16px;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    top: 3px;
    vertical-align: baseline;
    width: 16px;
}
/**
input[type='checkbox']:disabled
{
    opacity: .75;
}*/

input[type='checkbox']:not(disabled):not(.disabled):hover
{
    background: -webkit-linear-gradient(#fff, #e6e6e6);
    background: -moz-linear-gradient(#fff, #e6e6e6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
}

input[type='checkbox']:not(disabled):active
{
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
    background: -webkit-linear-gradient(#f0f0f0, #bebebe);
    -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
    background: -moz-linear-gradient(#f0f0f0, #bebebe);
    border: 1px solid #808080;
    padding-bottom: 4px;
    padding-top: 6px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}

input[type="checkbox"]:checked:before
{
    color: gray;
    content: url("img/checked.png");
    left: 3px;
    position: absolute;
    top: 3px;
}
input[type="submit"]:disabled {
    border-color: #A0A0A0;
}
input:disabled {
    opacity: 0.45;
}